<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
function Person(){
    this.name = 'frank'
}
Person.prototype.say = function(){
    alert('你好');
}


function Human(){
    this.age = 10;
    Person.call(this);// 执行Person函数，将当前 Human 内的this 传递到 Personc对象中的this
}
//Human.prototype = p;

Human.prototype = Object.create(Person.prototype);

var h = new Human();




//
//Rectangle.prototype = Shape.prototype;
//Rectangle.prototype = Object.create(Shape.prototype);
</script>
</body>
</html>